/*
 * Copyright 2017-8-30 13:56:25 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.scp.admin.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.lap.scd.commons.domain.IntegerDO;
import com.lap.scp.admin.bean.TreeDO;

/**
 * <pre>
 * 资源管理DO
 * </pre>
 * 
 * @author 郭凯
 * @Date 2017年9月27日14:27:05
 * @since 1.0
 */
public class ResourcesDO extends IntegerDO {
	private static final long serialVersionUID = 756362422019237246L;

	public ResourcesDO() {
	}

	public ResourcesDO(int pid) {
		this.pid = pid;
	}

	/**
	 * PID,长度:11
	 */
	private int pid;
	/**
	 * 名称,长度:64
	 */
	private String name;
	/**
	 * 路径标识,长度:128
	 */
	private String paths;
	/**
	 * 资源类型，10-菜单，20-功能,长度:11
	 */
	private int type = 10;
	/**
	 * 排序,长度:11
	 */
	private int sort = 1;
	/**
	 * 是否是叶子节点,长度:11 1：是 0：否
	 */
	private int leaf;
	/**
	 * 权限标识
	 */
	private String sign;
	/**
	 * 是否选中
	 */
	private boolean checked;
	/**
	 * 资源树下面的树形
	 */
	private List<TreeDO> treeList;

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPaths() {
		return paths;
	}

	public void setPaths(String paths) {
		this.paths = paths;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getLeaf() {
		return leaf;
	}

	public void setLeaf(int leaf) {
		this.leaf = leaf;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<TreeDO> getTreeList() {
		return treeList;
	}

	public void setTreeList(List<TreeDO> treeList) {
		this.treeList = treeList;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

}
